home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / program / 316 / libsrc / fputs.c < prev    next >
Encoding:
C/C++ Source or Header  |  1988-10-20  |  188 b   |  17 lines

  1.  
  2. /* fputs */
  3.  
  4. #include "std-guts.h"
  5.  
  6. void fputs(s, f)
  7. char * s;
  8. struct file * f;
  9. {
  10.   char c;
  11.  
  12.   for ( ; (c = *s++) ; )
  13.     fputc(c, f);
  14.   if (isatty(f->handle))
  15.     fflush(f);
  16. }
  17.